import request from '@/utils/request'

// 查询商家商品列表
export function listSupplierGoods(query) {
  return request({
    url: '/supplierGoods/supplierGoods/list',
    method: 'get',
    params: query
  })
}

// 查询商家商品详细
export function getSupplierGoods(id) {
  return request({
    url: '/supplierGoods/supplierGoods/' + id,
    method: 'get'
  })
}

// 新增商家商品
export function addSupplierGoods(data) {
  return request({
    url: '/supplierGoods/supplierGoods',
    method: 'post',
    data: data
  })
}

// 修改商家商品
export function updateSupplierGoods(data) {
  return request({
    url: '/supplierGoods/supplierGoods',
    method: 'put',
    data: data
  })
}

// 删除商家商品
export function delSupplierGoods(id) {
  return request({
    url: '/supplierGoods/supplierGoods/' + id,
    method: 'delete'
  })
}

// 导出商家商品
export function exportSupplierGoods(query) {
  return request({
    url: '/supplierGoods/supplierGoods/export',
    method: 'get',
    params: query
  })
}